<?
require_once("includes/load-yourls.php");
require_once("includes/userCake/config.php");

$headtitle = "cos.as";
$onload="i();";$alert="";
if (ACTIVE_PREVIEW===true) $onload="activePreview=true;$onload";

include_once 'includes/user.php';
include_once 'includes/header.php';
?>
<div id="short">
<div id="pill"></div>
<div id="logo">
<a href="/" tabindex="-1"><h1><span>cos.as</span></h1>
<p>Las cosas buenas no tienen por qué ser largas ;-)</p></a>
</div>
<div id="inputback">
<form id="input">
<div id="inputs">
<p>Introduce la dirección larga:</p><div id="info">Copiado</div><input type="text" name="url" id="url" value="http://" tabindex="1" onfocus="setTimeout(function(){$('url').select()},25)"/><a href="javascript:clear()" id="clear" tabindex="1"></a>
<div id="surl"><span>URL corta:</span><div id="ftag"><span>http://cos.as/</span><input type="text" name="tag" id="tag" value="" maxlength="12" tabindex="1" onfocus="setTimeout(function(){$('tag').select()},25)"/></div></div>
</div><a class="button" id="submit" href="#" onclick="s();return false" tabindex="2">¡acortar!</a>
<div id="urlinfo" class="toggle"><span id="urlloading" class="loading">Cargando...</span><div id="urlback"></div><div id="urlimage" class="toggle"><div id="uimg"></div><div id='arrows'><a href='javascript:setImage(-1)'>&lt;</a><span id="imgcnt"></span><a href='javascript:setImage(1)'>&gt;</a><label><input type="checkbox" id="withimage" name="withimage" value="true" checked/>Imagen</label></div></div><div id="urldata"><textarea name="urltitle" id="urltitle"></textarea><div id="urltitleempty">Título</div><textarea name="urldesc" id="urldesc"></textarea><div id="urldescempty">Descripción</div></div></div>
<div id="actions_container" class="actions"><a id="cp" class="cp" tabindex="3"><span class="icon"></span><u>copiar</u></a> <a class="tw" id="tw" tabindex="4"><span class="icon"></span><u>tuitear</u></a> <a class="fb" id="fb" tabindex="4"><span class="icon"></span><u>compartir</u></a> <a class="st" id="st" tabindex="4"><span class="icon"></span><u>seguir</u></a></div>
</form>
</div>
<div id="last" class="list"><p><span>últimas</span> cosas</p><div id="lastl" class="items"></div><span id="lloading" class="loading">Cargando...</span></div>
</div>
<div id="popular" class="list"><p><span>trending</span> cosas</p><div id="popl" class="items"><span class="loading">Cargando...</span></div></div>
<?include 'includes/footer.php';?>
